package org.example.n2n;

import java.util.HashSet;
import java.util.Set;

/**
 * @author zhaokuii11@163.com
 * @create 2021-12-06 16:54
 * @Description
 */
public class Category {
    private Integer id;
    private String name;
    private Set<Item> item = new HashSet<>();

    public Category() {
    }

    public Category(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Category(Integer id, String name, Set<Item> item) {
        this.id = id;
        this.name = name;
        this.item = item;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Item> getItem() {
        return item;
    }

    public void setItem(Set<Item> item) {
        this.item = item;
    }
}
